
#pragma once


#include "NLua.h"

class NLuaState  
{
	private:
		lua_State* m_pLuaState;
		bool m_bOK;
	private:
		bool Create(void);
		void Destroy(void);
	public:
		bool isOK(void) const{ return m_bOK; };
		operator lua_State*(){ return m_pLuaState; };
		lua_State* operator()(void){ return m_pLuaState; };

	public:
		NLuaState(void);
		virtual ~NLuaState(void);
};
